home *** CD-ROM | disk | FTP | other *** search
- %case zbuildOrder%
- %if not rsrcID = 200%
- { z%windname%.p% %}
- %endif%
- %case buildOrder%
- %if not rsrcID = 200%
- { %windname%.p% %}
- %endif%
- %case sourcefile%
- %if not rsrcID = 200%
- %if firstWindow%
- %genfile zWindow z+windname+.p%
- %if not fileExists windname+.p%
- %genfile Window windname+.p%
- %endif%
- %else%
- %genfile zSubWindow z+windname+.p%
- %if not fileExists windname+.p%
- %genfile SubWindow windname+.p%
- %endif%
- %endif%
- %endif%
- %case instance%
- %if not rsrcID = 200%
- var
- its%windname%:% %C%windname%;
- %endif%
- %case create%
- %if not rsrcID = 200%
- New (its%windname%);
- its%windname%.I%windname% (self, itsData);
- %if firstWindow%
- itsMainPane := its%windname%.itsMainPane;
- itsWindow := its%windname%;
- %endif%
-
- %endif%
- %case zinterface%
- %if not rsrcID = 200%
- %if firstWindow%
- type
- Z%WindName% = object (CWindow)
- itsMainPane: CPane;
-
- {Panes in this window:}
- %for each item gen instance%
-
- Procedure IZ%WindName%% %(aSupervisor: CDirector);
- %for each item gen zAuxiliaryMethod.decl%
-
- Procedure DoCommand (theCommand: longint); override;
-
- end; {Z%WindName%}
-
- %else%
- type
- Z%WindName% = object (CDirector)
- {Panes in this window:}
- %for each item gen instance%
-
- Procedure IZ%WindName%% %(aSupervisor: CDirector);
- %for each item gen zAuxiliaryMethod.decl%
-
- Procedure DoCommand (theCommand: longint); override;
-
- end; {Z%WindName%}
-
- %endif%
- %endif%
- %case interface%
- %if not rsrcID = 200%
- %if firstWindow%
- %for each item gen auxiliaryClass%
- type
- C%WindName% = object (Z%WindName%)
- itsData:% %C%appname%Data;
-
- Procedure I%WindName%% %(aSupervisor:% %CDirector;
- theData: C%appname%Data);
- Procedure UpdateMenus; override;
- Procedure DoCommand (theCommand: longint); override;
-
- Procedure ProviderChanged (aProvider: CCollaborator;
- reason: longint;
- info: UNIV Ptr); override;
- %for each item gen auxiliaryMethod.decl%
-
- end; {C%WindName%}
-
- %else%
- %for each item gen auxiliaryClass%
- type
- C%WindName% = object (Z%WindName%)
- itsData:% %C%appname%Data;
-
- Procedure I%WindName%% %(aSupervisor:% %CDirector;
- theData: C%appname%Data);
- Procedure UpdateMenus; override;
- Procedure DoCommand (theCommand: longint); override;
-
- Procedure ProviderChanged (aProvider: CCollaborator;
- reason: longint;
- info: UNIV Ptr); override;
- %for each item gen auxiliaryMethod.decl%
-
- end; {C%WindName%}
-
- %endif%
- %endif%
-